@tool
extends EditorInspectorPlugin

const AttributeDictionaryEditor = preload("res://addons/gameplay-ability-system/Scripts/Inspector/Attribute/attribute_dictionary_editor.gd")

func _can_handle(object: Object) -> bool:
	return object is AttributeDictionary



func _parse_property(object: Object, type: Variant.Type, name: String, hint_type: PropertyHint, hint_string: String, usage_flags: int, wide: bool) -> bool:
	if type == TYPE_ARRAY and name == "attirbute_list":
		add_property_editor(name,AttributeDictionaryEditor.new(),true)
		return true
	return false
